<!-- 左侧功能菜单栏 -->
<div id="sidebar" class="sidebar responsive">
	<ul class="nav nav-list">
		<li class="active">
			<a href="#(adminHome)" target="content">
				<i class="menu-icon fa fa-home"></i>
				<span class="menu-text">我的首页</span>
			</a>
			<b class="arrow"></b>
		</li>
		
		#for(option : options)
		<li class="">
			<a href="#if(option.url??) #(option.url) #else javascript:; #end" class="dropdown-toggle">
				<i class="menu-icon fa #(option.iconCols)"></i>
				<span class="menu-text">#(option.label)</span>
				<b class="arrow fa fa-angle-down"></b>
			</a>
			#if(option.children??)
			<b class="arrow"></b>
			<ul class="submenu">
				#for(child : option.children)
				<li class="">
					<a href="#if(child.url??) admin/route/#(child.id) #else javascript:; #end" target="content">
						<i class="menu-icon fa fa-caret-right"></i>
						#(child.label)
					</a>
					<b class="arrow"></b>
				</li>
				#end
			</ul>
			#end
		</li>
		#end
	</ul>
	<div class="sidebar-toggle sidebar-collapse" id="sidebarCollapse">
		<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
	</div>
	<script type="text/javascript">
		$(function(){
			try{
				$('#sidebarCollapse').on('click', function(){
					var sidebar = $('#sidebar');
					var collapse = $(this).find('i');
					if(sidebar.hasClass('menu-min')){
						sidebar.removeClass('menu-min');
						collapse.attr('class', collapse.attr('data-icon1'))
					} else {
						sidebar.addClass('menu-min');
						collapse.attr('class', collapse.attr('data-icon2'))
					} 
				})
			} catch(err){}
		})
	</script>
</div>